<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Python学习之极简笔记——从人工智能到机器智能</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="Description">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css"> -->
  <!-- <link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css"> -->
  <link rel="stylesheet" href="./.js/vue.css">

  <!-- 数学公式 -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css">
  <script src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js"></script>
  <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css" /> -->
  <!-- <script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script> -->


  <!-- 谷歌统计 -->
  <!-- <script src="//unpkg.com/docsify" data-ga="UA-161196727-1"></script> -->
  <script src=".js/docsify" data-ga="UA-161196727-1"></script>

  <!-- 流程图 -->
  <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css">
  <script src="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script> -->
  <link rel="stylesheet" href="./.js/mermaid.min.css">
  <script src="./.js/mermaid.min.js"></script>

  <style>
    .sidebar>h1 a {
      font-size: 20px;
      color: black;
    }

    .content {
      padding-top: 5px;
    }

    .markdown-section {
      padding-top: 10px;
    }
  </style>
</head>


<body>

  <!-- <script>
    var num = 0;
    mermaid.initialize({ startOnLoad: false });
  </script> -->

  <div id="app"></div>
  <script>
    window.$docsify = {
      coverpage: false,    //主页
      loadSidebar: true,  //侧边
      maxLevel: 6,
      subMaxLevel: 6,
      auto2top: true,
      alias: {
        '/.*/_sidebar.md': '/_sidebar.md',
      },
      markdown: {
        latexRender: katex.renderToString.bind(katex),
        renderer: {
          code: function (code, lang) {
            if (lang === "mermaid") {
              return (
                '<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
              );
            }
            return this.origin.code.apply(this, arguments);
          }
        }
      },
      search: {
        placeholder: '搜索',
        noData: '搜索无结果!',
        paths: 'auto',
        depth: 6
      },
      ga: 'UA-161196727-1',
      formatUpdated: '{MM}/{DD} {HH}:{mm}',
      noCompileLinks: ['/foo', '/bar/.*'],  //不处理的链接地址
      basePath: 'docs/',
      externalLinkTarget: '_target',  //当前默认为 _blank, 配置一下就可以
      name: '《Python学习之极简笔记》',
      // name: '<font color="#42a5f5" face="楷体">《Python学习之极简笔记》</font>',
      // name: '《Python学习之极简笔记——从人工智能到机器智能》',
      // nameLink: '/',
      repo: 'https://github.com/wan230114/PythonNote.git',
      plugins: [
        function (hook, vm) {
          hook.beforeEach(function (html) {
            if (/githubusercontent\.com/.test(vm.route.file)) {
              url = vm.route.file
                .replace('raw.githubusercontent.com', 'github.com')
                .replace(/\/master/, '/blob/master')
            } else {
              url = 'https://github.com/wan230114/PythonNote/blob/master/' + vm.route.file
            };
            var editHtml = '<img class="emoji" src="./.js/memo.png" alt="memo" />[ Edit Document](' + url + ')\n'  // var editHtml = '<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/memo.png" alt="memo" />[:memo: Edit Document](' + url + ')\n'
            if (location.hash == "#/") {
              return html + '\n\n----'
            } else {
              return editHtml + '\n' + html + '\n\n----'
            }  // + '\n\n----\n\n' // + '<a href="https://github.com/wan230114/PythonNote.git" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by ChenJun</a>'
          });
          // hook.afterEach(function (html) {
          // 每次路由切换时数据全部加载完成后调用，没有参数。
          // ...
          // location.reload()
          // gitalk.render('gitalk-container');
          // return html + '<b>测试</b>' + 
          // })
        },
      ]
    }
  </script>

  <!-- <script src="docsify.js"></script> -->
  <!-- <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> -->
  <!-- <script src="//unpkg.com/docsify/lib/docsify.js"></script>
  <script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
  <script src="//unpkg.com/docsify-copy-code"></script>
  <script src="//unpkg.com/prismjs/components/prism-bash.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-python.js"></script>
  <script src="//unpkg.com/docsify/lib/plugins/search.js"></script> -->

  <script src="./.backfile/docsify.js"></script>
  <!-- <script src="./.js/docsify.js"></script> -->
  <script src="./.js/zoom-image.js"></script>
  <script src="./.js/docsify-copy-code.min.js"></script>
  <script src="./.js/prism-bash.js"></script>
  <script src="./.js/prism-python.js"></script>
  <script src="./.js/search.js"></script>

  <!-- Math -->
  <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
        extensions: ["tex2jax.js"],
        jax: ["input/TeX", "output/HTML-CSS"],
        tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"] ],
          displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
          processEscapes: true,
          skipTags: ["script", "noscript", "style", "textarea", "pre", "code", "a"]
        },
        "HTML-CSS": { fonts: ["TeX"] }
      });
    </script>
  <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

  <!-- 谷歌统计 - Google Analytics -->
  <!-- <script src="//unpkg.com/docsify" data-ga="UA-161196727-1"></script> -->
  <!-- <script src="//unpkg.com/docsify/lib/plugins/ga.js"></script> -->
  <script src="./.js/ga.js"></script>


  <!-- 返回顶部的按钮 -->
  <link rel="stylesheet" href="./.js/jump2top.css">
  <script src="./.js/jump2top.js"></script>
  <button onclick="topFunction()" id="myBtn" title="回顶部">返回<br>顶部</button>


  <!-- 实时聊天插件 -->
  <script>
      ((window.gitter = {}).chat = {}).options = {
      room: 'PythonNoteTalk/PythonNote'
    };
  </script>
  <!-- <script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer><\/script> -->
  <script src="./.js/sidecar.v1.js" async defer></script>
  <script>  // gitter实时聊天的功能补充，按键盘esc退出gitter 或者 点击区域外任意处退出
    function closechart(params){
      const buts = document.getElementsByClassName("gitter-chat-embed-action-bar-item");
      for (let but of buts){if(but.className == "gitter-chat-embed-action-bar-item gitter-chat-embed-action-bar-item-collapse-chat")but.click();}
    }
    document.onkeydown = function(){if(event.keyCode == 27)closechart()};
    document.onclick = function(e){if(e.target.className.indexOf("gitter-open-chat-button")==-1)closechart()};
  </script>

  <!-- 评论插件 -->
  <!-- <link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css">
  <script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>
  <script src="//unpkg.com/docsify/lib/plugins/gitalk.min.js"></script> -->
  <link rel="stylesheet" href="./.js/gitalk.css">
  <script src="./.js/gitalk.min.js"></script>
  <script src="./.js/own/plugins.gitalk.min.js"></script>
  
  <!-- 广告插件定义 -->
  <script src="./.js/own/ad.js"></script>

</body>

</html>